package com.p2p.front.service;

import com.p2p.base.model.ValidateCodeSend.BizTypeEnum;
import com.p2p.front.dal.model.User;
import com.p2p.front.vo.UserCenterResult;
import com.p2p.front.vo.UserRegisterVo;

public interface UserRegisterService {

	void saveUser(User user);
	
	UserCenterResult sendSMSCode(String mobileNum, String key, BizTypeEnum type, int codeType);
	
	/**
	 * 身份认证
	 * @author hongbo
	 * @param userRegisterVo
	 * @return
	 */
	UserCenterResult doAuthID(UserRegisterVo	userRegisterVo);
	
	/**
	 * @author hongbo
	 * 用户注册，适用于手机和邮箱
	 * @param userRegisterVo
	 * @return
	 */
	void doRegisterByMobile(UserRegisterVo	userRegisterVo);
	
	/**
	 * 校验加密邮件链接的正确性
	 * @author hongbo
	 * @param encryptEmailId
	 * @param encryptCode
	 * @param encryptType 
	 * @param encryptUserId 
	 * @return
	 */
	UserCenterResult checkRegisterEmailLegal(String encryptEmailId,String encryptCode, String encryptType, String encryptUserId);
	
	UserCenterResult sendEmail(String emailAddres, String code,
			int type, String replace, String userId);

	UserCenterResult checkSMSCode(String mobilephone, String code,
			BizTypeEnum mobilebindingformodifymobile);

	void addCardId(String real_name, String card_id);

	UserCenterResult sendCodeByEmail(String email, String key,
			BizTypeEnum type, int codeType);

}
